﻿
using BCCommon;
using BCCommon.Enums;
using BCData.CRM.IndustryCategory;
using BCDto.CRM.IndustryCategory;
using BCEntity.CRM.IndustryCategory;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.CRM.IndustryCategory
{
    /// <summary>
    /// 行业类别
    /// </summary>
    public interface IIndustryCategoryService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="industryCategoryId">行业类别Id</param>
        bool Exists(long industryCategoryId);
        /// <summary>
        /// 添加行业类别
        /// </summary>
        /// <param name="requestDto">行业类别信息</param>
        IndustryCategoryDto Add(IndustryCategoryRequestDto requestDto);
        /// <summary>
        /// 更新行业类别
        /// </summary>
        /// <param name="putDto">行业类别信息</param>
        IndustryCategoryDto Update(IndustryCategoryPutDto putDto);
        /// <summary>
        /// 删除行业类别
        /// </summary>
        /// <param name="industryCategoryId">行业类别Id</param>
        bool Delete(long industryCategoryId);
        /// <summary>
        /// 获取行业类别
        /// </summary>
        /// <param name="industryCategoryId">行业类别Id</param>
        IndustryCategoryDto Get(long industryCategoryId);
        /// <summary>
        /// 获取行业类别列表
        /// </summary>
        IEnumerable<IndustryCategoryDto> GetList();
        /// <summary>
        /// 获取行业类别分页列表
        /// </summary>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">行业类别每页数据条数</param>
        PageableList<IndustryCategoryDto> Query(DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}